export function toUpperCase(str) {
    return str ? str.toUpperCase() : ''
}

export function formatDate(timestamp) {
    const date = new Date(timestamp)
    const year = date.getFullYear()
    const month = date.getMonth() + 1
    const day = date.getDate()
    return `${year}年${month}月${day}日`
}